<?php

namespace core\lib;

require_once(BASE_PATH . 'vendor/autoload.php');

use League\Plates\Engine;

/**
 * 视图类，主要逻辑来自league/plates这个库
 */
class View extends Engine
{
    // 承接Engine返回的对象
    private $template;

    // 视图文件地址传给第三方类
    public function __construct($path)
    {
        $this->template = parent::__construct($path);
    }
}
